package com.leejxx.health.service;

import com.leejxx.health.entity.PageResult;
import com.leejxx.health.entity.QueryPageBean;
import com.leejxx.health.pojo.CheckGroup;
import com.leejxx.health.pojo.Setmeal;

import java.util.List;

/**
 * @Author LeeJx
 * @ClassName CheckMeal
 * @Description TODO
 * @date 2021/1/2 9:23
 * @Version 1.0
 */
public interface CheckMealService {
    PageResult findByPage(QueryPageBean queryPageBean);

    List<CheckGroup> findAllCheckGroups();

    void add(Setmeal checkMeal, List<Integer> checkGroupIds);

    long countByImg(String img);

    List<Setmeal> findAllCheckMeal();

    Setmeal findCheckMealById(Integer id);

    List<Integer> findCheckGroupIdByMealId(Integer id);

    void editCheckMeal(Setmeal checkMeal);

    void editCheckGroupId(Integer id, List<Integer> checkGroupIds);

    void delete(Integer id);

    Setmeal findById(Integer id);

    Setmeal findByMealId(Integer checkMealId);
}
